package com.dykj.fireFighting.server.socialUnit.buildmanger.mapper;


import com.dykj.fireFighting.api.socialUnit.buildmanger.entity.Building;
import com.dykj.fireFighting.api.socialUnit.buildmanger.vo.BuildingVo;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import com.dykj.fireFighting.common.core.vo.TreeVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description 建筑管理-楼栋管理
 * @Author aixiaolan
 * @Date  2021-06-22 16:04:02
 */
public interface BuildingMapper extends SuperMapper<Building> {
    /**
     * 根据单位查询楼栋信息
     *
     * @param unitId
     * @return
     */
    @Select("select * from building where unit_id=#{unitId}")
    List<Building> getBuildList(String unitId);

    /**
     * @param enterpriseId
     * @return
     */
    List<TreeVo> queryBuildFloorPartitionsTree(String enterpriseId);

    /**
     * 楼栋楼层分区信息查询
     *
     * @param buildId
     * @param floorId
     * @param partitionsId
     * @return
     */
    BuildingVo queryBuildFloorPartitionsInfo(@Param("buildId")String buildId, @Param("floorId")String floorId, @Param("partitionsId")String partitionsId);
}
